import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/page/home/home.vue'
import Pcba from '../components/page/pcba/pcba.vue'
import Smt from '../components/page/smt/smt.vue'
import Pcb from '../components/page/pcb/pcb.vue'
import Quality from '../components/page/quality/quality.vue'
import Information from '../components/page/information/information.vue'
import Walk from '../components/page/walk/walk.vue'
import Contact from '../components/page/contact/contact.vue'
import PcbNewOrder from '../components/page/pcbNewOrder/pcbNewOrder.vue'

Vue.use(Router)

export default new Router({
    mode: 'history',//hash history  两种模式，生产环境如果不能运行就改为 hash模式
    base:"/pcb/",//开发环境用 /  ,生产环境如果要放在目录 就要指定一个目录
    routes:[
        {//正著首页
            path:'/',
            name:'home',
            component:Home,
            meta: {
                showFooter: true,
                showHeader: true
              }
        },
        {//PCBA加工
            path:'/pcba',
            name:'pcba',
            component:Pcba,
            meta: {
                showFooter: true,
                showHeader: true
              }
        },
        {//SMT加工
            path:'/smt',
            name:'smt',
            component:Smt,
            meta: {
                showFooter: true,
                showHeader: true
              }
        },
        {//pcb线路板
            path:'/pcb',
            name:'pcb',
            component:Pcb,
            meta: {
                showFooter: true,
                showHeader: true
              }
        },
        {//品质保障
            path:'/quality',
            name:'quality',
            component:Quality,
            meta: {
                showFooter: true,
                showHeader: true
              }
        },
        {//资讯中心
            path:'/information',
            name:'information',
            component:Information,
            meta: {
                showFooter: true,
                showHeader: true
              }
        },
        {//走进正著
            path:'/walk',
            name:'walk',
            component:Walk,
            meta: {
                showFooter: true,
                showHeader: true
              }
        },
         {//在线计价
            path:'/pcbNewOrder',
            name:'pcbNewOrder',
            component:PcbNewOrder
        },
        {//一般路由
            path:'/contact',
            name:'contact',
            component:Contact,
            meta: {
                showFooter: true,
                showHeader: true
              }
        },

    ]

})